package ooday05;

public class GetterSetterDemo {

    public static void main(String[] args) {

        Point p = new Point();
        p.setX(1);
        p.setY(2);
        System.out.println(p.getX() + " " + p.getY());

    }

}
